package com.abing.observer.test2;

import java.util.Observable;

public class MessageObServable extends Observable {


    @Override
    public void notifyObservers(Object arg) {
        // 1.修改状态为可以群发
        setChanged();
        // 2.调用父类的notifyObservers 群发消息
        super.notifyObservers(arg);
    }
}
